home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / Speech Recognition Manager / SR Sample Code / Speakable Items Example / Sources / Process & Finder Stuff / AppleEventUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-11  |  865 b   |  29 lines  |  [TEXT/CWIE]

  1. /* AppleEventUtils.h
  2.  *------------------------------------------------------------*
  3.  *    AppleEvent-related utility routines
  4.  */
  5.  
  6. #include "Processes.h"
  7. #include "AppleEvents.h"
  8.  
  9.  
  10. /* GetProcessLocation uses PPCBrowser to allow the user to specify where a 
  11.  *    process is running.  The given prompt will be shown at the top of the
  12.  *    PPCBrowser dialog.
  13.  */
  14. OSErr GetProcessLocation(StringPtr prompt, 
  15.                         LocationNameRec *theLocation, 
  16.                         PortInfoRec *thePortInfo);
  17.  
  18.  
  19. /* SendAppleEvent1Param sends an apple event with the given class and ID to the given location.
  20.  *    The direct parameter is set to the given data before sending.
  21.  */
  22. OSErr SendAppleEvent1Param(LocationNameRec    *theLocation, 
  23.                             PortInfoRec        *thePortInfo, 
  24.                             AEEventClass    eventClass,
  25.                             AEEventID        eventID,
  26.                             DescType        dataType, 
  27.                             void            *dataPtr, 
  28.                             Size            dataSize);
  29.